// 抛物线计算（可扩展）
export function calcParabola(x0, y0, vx, vy, g, t) {
  return {
    x: x0 + vx * t,
    y: y0 + vy * t + 0.5 * g * t * t
  }
}

// 圆形碰撞检测
export function checkCollision(a, b) {
  const dx = a.x - b.x
  const dy = a.y - b.y
  const dist = Math.sqrt(dx * dx + dy * dy)
  return dist < (a.radius + b.radius)
} 